<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh-CN">

<head>
<title>菜单</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style>
	a{color: #000000;text-decoration: none;}
	a:hover{color: #ff0000;text-decoration: underline;}
	body,table{font-size:12px;}
	.p{margin-left:10px;}
	.ps{margin-left:16px;display:none;}
	.pss{margin-left:10px;display:block;}
	.t{cursor:pointer;background:url(../imageslxh/ico080426_close.gif) no-repeat;line-height:20px; padding-left:20px; height:20px;}
	.f{cursor:pointer;background:url(../imageslxh/ico080426_open.gif) no-repeat;line-height:20px; padding-left:20px; height:20px;}
	.b{cursor:pointer;background:url(../imageslxh/ico080426_dot.gif) no-repeat;line-height:20px; padding-left:20px; height:20px;}
	.fblod{font-weight:bold;}
	.padtb8{padding:8px 0;}
	.fontred{color:#f00;}
</style>
</head>

<script language="javascript" type="text/javascript">
function goUrl(id)
{
	document.location.href = 'show/'+id;
	return false;
}

function w(vd)
{
  var ob=document.getElementById(vd);
  if(ob.style.display=="block" || ob.style.display=="")
  {
     ob.style.display="none";
     var ob2=document.getElementById('s'+vd);
     ob2.style.backgroundImage="url(../imageslxh/ico080426_open.gif)";
  }
  else
  {
    ob.style.display="block";
    var ob2=document.getElementById('s'+vd);
    ob2.style.backgroundImage="url(../imageslxh/ico080426_close.gif)";
  }
}
function k(vd)
{
  var ob=document.getElementById(vd);  
  if(ob.style.display=="block")
  {
     ob.style.display="none";
     var ob2=document.getElementById('s'+vd);
     ob2.style.backgroundImage="url(../imageslxh/ico080426_open.gif)";
  }
  else
  {
    ob.style.display="block";
    var ob2=document.getElementById('s'+vd);
    ob2.style.backgroundImage="url(../imageslxh/ico080426_close.gif)";
  }
}
</script>

<body>

<table width="450" align="center" style="border-left:2px solid orange;border-right:2px solid orange;">
	<tr height="20px"><td colspan="3">&nbsp;</td></tr>
	
	<tr>
		<td>&nbsp;</td>
		
	    <td>
			<table width="230" align="center"  bgcolor="#F6F6F6" style="border:1px solid #999999;">
			<tr>
			<td width="40">&nbsp;</td>
			<td>
			<div class="padtb8">
			
			<%
			def idx=0; 
			def idx2=0; 
			for(m1 in m1List){
				idx++;
			%>
				<div class="f" id="sgc${idx}" onclick="w('gc${idx}')">
					<a href="#" onclick="return goUrl('${m1.id}')">${m1?.menuname}</a>
				</div>
			
				<div class="ps" id="gc${idx}" style="display:none">
					<%
					def m2List = m2Map[m1?.id];
					for(m2 in m2List){
						idx2++;	
					%>
					<div class="f" id="sfgc${idx2}" onclick="k('fgc${idx2}')">
						<a href="#" onclick="return goUrl('${m2.id}')">${m2.menuname}</a>
					</div>
			
					<div class="ps" id="fgc${idx2}">
						<%
						def m3List = m3Map[m2?.id];
						for(m3 in m3List){
						%>
						<div class="b">
							<a href="#" onclick="return goUrl('${m3.id}?flag=leaf')">${m3.menuname}</a>
						</div>
						<%}%>
					</div>
					<%}%>		
				</div>
			<%}%>
				
			</div>
			
				</td>
				
			</tr>
			
			<tr>
				<td colspan="2" align="center">
					<hr size="1" color="#cccccc" width="100%">
					<img src="../imageslxh/tbup.gif" style="margin-bottom:-1px">&nbsp;
					<g:link action="create"><font color="red">增加一级菜单</font></g:link>&nbsp;	
				</td>
			</tr>
			</table>
		</td>
		
		<td>&nbsp;</td>
		
	<tr height="20px"><td colspan="3">&nbsp;</td></tr>
</body>

</html>